package com.tjzx.entity;

/**
 * PeisPatientHealthMangerId entity. @author MyEclipse Persistence Tools
 */

public class PeisPatientHealthMangerId implements java.io.Serializable {

	// Fields

	private Integer id;
	private String healthManger;

	// Constructors

	/** default constructor */
	public PeisPatientHealthMangerId() {
	}

	/** minimal constructor */
	public PeisPatientHealthMangerId(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public PeisPatientHealthMangerId(Integer id, String healthManger) {
		this.id = id;
		this.healthManger = healthManger;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getHealthManger() {
		return this.healthManger;
	}

	public void setHealthManger(String healthManger) {
		this.healthManger = healthManger;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof PeisPatientHealthMangerId))
			return false;
		PeisPatientHealthMangerId castOther = (PeisPatientHealthMangerId) other;

		return ((this.getId() == castOther.getId()) || (this.getId() != null
				&& castOther.getId() != null && this.getId().equals(
				castOther.getId())))
				&& ((this.getHealthManger() == castOther.getHealthManger()) || (this
						.getHealthManger() != null
						&& castOther.getHealthManger() != null && this
						.getHealthManger().equals(castOther.getHealthManger())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getId() == null ? 0 : this.getId().hashCode());
		result = 37
				* result
				+ (getHealthManger() == null ? 0 : this.getHealthManger()
						.hashCode());
		return result;
	}

}